package com.example.core;

import java.util.List;

import com.ruoyi.common.constant.HttpStatus;

public class PageResult<T> extends com.ruoyi.common.core.page.TableDataInfo implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	public PageResult(List<T> data, long total) {
		setCode(HttpStatus.SUCCESS);
		setMsg("OK");
		setRows(data);
		setTotal(total);
	}

	@Override
	public List<T> getRows() {
		return (List<T>) super.getRows();
	}

}
